package cn.nai.DemoRan.demo05;

public class Scientist extends Employee{
    private double annualCome;
    public Scientist() {
    }
    public Scientist(String name, double salary, double annualBonus) { super(name, salary);this.annualCome = annualBonus; }
    public double getAnnualBonus() {
        return annualCome;
    }
    public void setAnnualBonus(double annualBonus) {
        this.annualCome = annualBonus;
    }
    public double annual(){
        return super.allYearCome() + annualCome;
    }
}
